<template>
  <div class="operation-container">
    <a-button type="primary" icon="plus" @click="addUser" v-auth="'add_admin_user'">
      新建
    </a-button>
    <!-- <a-button>
      导入模板
    </a-button>
    <a-button>
      批量导入
    </a-button> -->
    <a-button @click="deleteUsers" v-auth="'delete_group'">
      批量删除
    </a-button>
  </div>
</template>

<script>
export default {
  methods: {
    // 删除用户
    deleteUsers () {
      this.$emit('deleteUsers')
    },

    // 新增用户
    addUser () {
      this.$router.push({
        name: 'AccountAdd',
      })
    },
  },
}

</script>

<style lang="scss" scoped>
.operation-container {
  button {
    margin: 0 $margin-base;
  }
}
</style>
